<template>
    <div>
        <div v-if="isShow" :perms="perms">
            <slot>
            </slot>
        </div>
    </div>
</template>
<script>

export default {
    props: ['perms'],
    data() {
        return {
            isShow: false
        }
    },
    methods: {

    },
    created() {
        // console.log(this.perms);
        console.log(localStorage.perms);
        if(localStorage.perms.indexOf(this.perms) >= 0) {
            this.isShow = true;
        }
        // console.log(this.isShow);
        // this.isShow = false; 
    }
}
</script>
